
                let city='110000null110119110119001';
                var reg=new RegExp("null","g");
                city=city.replace(reg,"");
               	 var cityitme={},citynun=[];
               	 var a=0;
               	 var b=1;
               	 for(var i=0;i<city.length/6;i++){
              			 cityitme[i]=city.substring(a,b*6);
                  		 a=b*6;
                  		 b++; 
               	 }
   	             citycode=cityCode();
   	             //province,city,area,hasCity;
   	             //440000 440900 440902 null
   	             //110000 null 110101 null
   	             //350000 350200 350203 350203 001
   	             let province=[];
   	             	if(b>4){
   	            		let one=true;
	   	            	 for(index in cityitme){
	   	            		 let citynun=Number(city)
	   	            		 let citylength=city.length;
	   	            		 if(citylength/6&&citylength>18&&Number(cityitme[i-1])%1e4&&Number(cityitme[i-1])<7e5&&one){
	   	            			 itme=cityitme[index];
		   	      	             province+=(citycode[itme])	
	   	            			 $.ajax({
	      	         					url:'http://passer-by.com/data_location/town/'+cityitme[i-2]+'.json',
	      	         					dataType:'json',
	      	         					success:function(data){
	      	         						itme=Number(cityitme[index-1]+cityitme[index]);
	      	         						 province+=(data[itme]);
	      	         						 console.log(province);
	      	         					}
	      	         				});
	      	            			one=false;
	   	            		}
   	            		else{
   	            			if(index!=i-2&&index!=i-1){
   	            				itme=cityitme[index];
   	   	      	               	province+=(citycode[itme])	
   	            			}
   	   	                 }
   	                 }	 
   	             }else{
   	            	 for(index in cityitme){
   	            		itme=cityitme[index];
  	      	            province+=(citycode[itme])
  	      	             
   	            	 }
   	            	console.log(province);
   	             }
                
               	 
                //let province=citycode.cityitme[0]
                 